package com.zhk.ScriptManagement.mapper;

import com.zhk.ScriptManagement.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: zhouhongkun
 * @Description: 权限
 * @Date: 2021/4/4 17:33
 */
@Component
@Mapper
public interface PermissionMapper {

     List<Permission> selectPermissionByUserId(@Param("userId") Integer userId);

    int addPermission(@Param("permission") Permission permission);

    int updatePermission(@Param("permission") Permission permission);

    int updatePermissionByUserId(@Param("permission") Permission permission);

    int deletePermission(@Param("userId") Integer userId);
}
